<?php
require 'libs/ModelBase.php';
class portadaModel extends ModelBase
{
	public function getContactData(){
		
		$consulta = $this->db->prepare("SELECT * FROM user WHERE nick = 'admin'");
		
		$consulta->execute();	
		
		return $consulta;	
	}
	
	public function getContactText(){
		
		$consulta = $this->db->prepare("SELECT * FROM content WHERE id = 4 and id_field = 4");
		
		$consulta->execute();
		
		return $consulta;
	}
	
	public function getTextoAgradecimientos(){
		
		$consulta = $this->db->prepare("SELECT * FROM content WHERE id = 3 AND id_field = 3");
		
		$consulta->execute();
		
		return $consulta;
	}
}

?>